<%@ page language="java" import="data.*,logic.*,java.util.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>SOS PLANET - Ayuda al mundo</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<div id="wrapper">
<div class="content">
<div id="header">
	<%@ include file = "includes/header.jsp" %>
</div><!-- header -->

<div id="menu">      
	<%@ include file = "includes/menu.html" %>
</div><!-- menu -->
           



<!-- INSERTA TU CODIGO AQUI -->
<%
String r = request.getParameter("idact");
ActivityStore as = ActivityStore.getInstance();
Activity a = new Activity();
a = as.getActivity(r);
%>
<div class="actividad">
<h1>ACTIVIDAD</h1>
</div>

<div class="nombre">
  Nombre:  <%=a.getName()%>
</div>

<div class="tipo">
  Tipo:  <%=a.getType()%>
</div>

<div class="descripcion">
  Descripci&oacute;n:  <%=a.getDescription()%>
</div>

<div class="organizacion">
  Organizaci&oacute;n:  <%=a.getOrganization()%>
</div>

<div class="maxvoluntarios">
  N&uacute;mero m&aacute;ximo voluntarios:  <%=a.getMaxnumvolunteers()%>
</div>

<div class="minvoluntarios">
  N&uacute;mero m&iacute;nimo voluntarios:  <%=a.getMinnumvolunteers()%>
</div>

<div class="voluntariosinscritos">
  Voluntarios inscritos:  <%=a.getSignedVolunteers()%>
</div>

<%
User u = (User)session.getAttribute("session.userAux");
if(u != null){
%>
<form class="boton" action="FrontController?res=CartaInscripcion.jsp" method="post">
<input type="hidden" name="idact" value="<%= a.getId() %>" />
<input class="buyproductlarge" type="submit" value="Inscribirse" />
</form>
<% } %>


<div class="clear"></div>
    
<div id="footer">
	<%@ include file = "includes/footer.html" %>
</div><!--footer-->

</div><!--content-->
</div><!--wrapper-->
</body>
</html>